package org.oc.qaq.context;

public class UserContext {

    public static ThreadLocal<String> USER_ID_HOLDER = new ThreadLocal<>();

    public static void setCurrentId(String id) {
        USER_ID_HOLDER.set(id);
    }

    public static String getCurrentId() {
        return USER_ID_HOLDER.get();
    }

    public static void removeCurrentId() {
        USER_ID_HOLDER.remove();
    }

}
